package designprinciples.singleresponsibility;

/**
 * @program: MyTank
 * @description:  违反单一指责的场景，有些人类不吃肉，只吃素，这个时候，这个方法就不太合适了。
 * @author: 王术平
 * @create: 2021-01-23 18:11
 **/
public class Client {
    public static void main(String[] args) {
        Person person = new Person();
        person.eat("张三");
        person.eat("李四");
        person.eat("王五");
    }
}

class Person {
    public void eat(String name) {
        System.out.println(name + "吃肉");
    }
}